import 'package:creatures_world/pages/base/base_controller.dart';
import 'package:get/get.dart';
import '../../db/db_helper.dart';

class FavorController extends BaseController {

  var favorList = [].obs;

  @override
  void onInit() {
    super.onInit();
    loadFromDb();
  }

  loadFromDb() async {
    var favors =await DBHelper.listAllFavor();
    favorList.value = favors;
  }

}
